SftTree/NET 2.0

Drag & Drop

Softel vdm, Inc.

SftTree/NET has full support for drag & drop as offered by controls using the Control.AllowDrop property. The DragStyle property controls whether the control generates the DragDetected event. Drag & drop is never automatic and must be initiated by the application, usually in the DragDetected event using the Control.DoDragDrop method.

While handling the Control.DragEnter, DragOver and DragDrop events, a default drop target is provided by the control automatically in the DropTarget property. An application can override the default drop target while handling these events.

The AutoExpandDragDrop property defines whether items are automatically expanded during a drag & drop operation, when the mouse cursor hovers over an item for an extended period of time (DragDropHoverInterval).

The Dimensions.AutoHScrollMargin and AutoVScrollMargin properties control the area where vertical and horizontal scrolling starts automatically during drag & drop operations. 


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com